#ifndef MATRIXCALCULATEWINDOW_H
#define MATRIXCALCULATEWINDOW_H

#include <QMainWindow>
#include <QPushButton>
#include <QTextEdit>
#include <QRadioButton>
#include <QTextBrowser>
#include <ApplicationManager.h>
#include <QDebug>
namespace Ui {
class MatrixCalculateWindow;
}

class MatrixCalculateWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MatrixCalculateWindow(QWidget *parent = nullptr);
    ~MatrixCalculateWindow();

private:
    Ui::MatrixCalculateWindow *ui;
    //切换窗口按钮
    QPushButton* btn_calculator;
    QPushButton* btn_set;
    QPushButton* btn_complex;

    //输入框
    QTextEdit* textEdit_m1;
    QTextEdit* textEdit_m2;
    //加 减 乘
    QRadioButton* rbtn_add;
    QRadioButton* rbtn_sub;
    QRadioButton* rbtn_mul;
    //结果展示
    QTextBrowser* textBrowser_result;

    //清空按钮
    QPushButton* btn_clear;
    QPushButton* btn_get;

    //业务处理
    Matrix matrix;
    Service service;
};

#endif // MATRIXCALCULATEWINDOW_H
